﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSystem.Domain.Entities
{
    /// <summary>
    /// 溯源表
    /// </summary>
    public class Traceability
    {
        /// <summary>
        /// 溯源主键
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        [StringLength(50)]
        public string TraceabilityId { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public int ShopId { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        [StringLength(50)]
        public string ProBatch { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int ShelfLife { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        [StringLength(50)]
        public string ProLicense { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        [StringLength(50)]
        public string Manufacturers { get; set; }
        /// <summary>
        /// 养殖Id
        /// </summary>
        public int BreedId { get; set; }
        /// <summary>
        ///屠宰Id
        /// </summary>
        public int SlaughteId { get; set; }
        /// <summary>
        ///深加工Id
        /// </summary>
        public int MachiningId { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        [StringLength(1000)]
        public string CoverPic { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
